<style>
	.home_professions{
		margin-top: 15px;
	}
	.home_professions .home_professions_nav{
	}
	.home_professions ul{
		margin :0px;
	}
	.home_professions ul li{
		float: left;
		margin: 0px;
		padding: 0px;
		width: 320px;
		margin-bottom: 10px;
	}
	.home_professions ul li .img_professions{
		width: 130px;
		height: 90px;
		border: 1px solid #CCCCCC;
	}
	.home_professions ul li .profession_enterprise{
		width: 148px;		
		float: right;
	}
	.home_professions ul li .profession_enterprise ul{
		list-style: none;
		margin: 0px;
	}
	.home_professions ul li .profession_enterprise ul li{
		float: none;
		margin: 0px;
	}
	.title a{
		color: #FF9900;
		text-decoration: none;
	}
	.title a:hover{
		color: #FF9900;
		text-decoration: underline;
	}
</style>
<div class="home_professions">
	<!--div class="home_professions_nav">
		<?php // echo $this->translator("home_professions_title","b2b");?>
	</div-->
	<?php 
		if(count($this->professions)):			
	?>			
		<?php $i=0; foreach($this->professions as $key=>$item):?>
			<?php
				$enterprise = isset($this->arrProfession[$key])?$this->arrProfession[$key]:null;
			?>
			<?php if($i%3 == 0):?>
			<ul style="display:table;">
			<?php endif;?>
			<li>
			    <div>
					<div style="font-size: 14px; font-weight: bold;"><?php echo $item["name"];?></div>
					<img  class="img_professions" src="<?php echo $item["img_url"];?>"/>
					<div class="profession_enterprise" style="width: 180px;">
						<?php if($enterprise):?>
						<ul>
						<?php foreach($enterprise as $item_e):	?>
							<?php 
								if(isset($item_e->id)):
								$id = isset($item_e->id)?$item_e->id:null;
								$company_name_en = isset($item_e->company_name_en)?$item_e->company_name_en:null;
								$company_name_vn = isset($item_e->company_name_vn)?$item_e->company_name_vn:null;
								
								/**
							    * Param url detail
							    **/
							    $arrRouteDetail = array(
							        'enterprise_id' => $id,
							        'enterprise_name' => Tomato_Utility_String::removeSign($company_name_en, '-', true),
							    );
								
							?>
							<li style="width: auto;" >
								<a href="<?php echo $this->url($arrRouteDetail,'bizprofile_enterprise_index');?>">
									<span><?php echo $enterprise_name = ($this->lang == 'vi_VN')?$company_name_vn:$company_name_en;?></span>
								</a>
							</li>
							<?php endif;?>
						<?php endforeach;?>
						</ul>
						<?php endif;?>
					</div>
				</div>
			</li>
			<?php $i++; if($i%3 == 0):?>
			</ul>
			<?php endif;?>			
		<?php endforeach;?>
		<?php $i++; if($i%3 != 0):?>
		</ul>
		<?php endif;?>		
	<?php endif;?>
</div>